package top.braycep.bean;

import lombok.Data;
import org.beetl.sql.annotation.entity.AutoID;
import org.beetl.sql.annotation.entity.Table;
import org.beetl.sql.annotation.entity.UpdateIgnore;
import org.beetl.sql.fetch.annotation.Fetch;
import org.beetl.sql.fetch.annotation.FetchMany;

import java.util.ArrayList;
import java.util.List;

@Table(name = "table_tasks")
@Fetch(level = 2)
@Data
public class Task {
    @AutoID
    @UpdateIgnore
    private Long id;
    private String grp;
    private Long jarId;
    private Long ord;

    @FetchMany(value = "jarId")
    private List<JarFile> jarFiles = new ArrayList<>();
}
